package com.fd.fdsso.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 帐号详细信息
 * 
 * @author 符冬
 * 
 */
@Entity
public class SSOUserInfo implements Serializable {
	private static final long serialVersionUID = -4967857124408942418L;
	@Id
	@GeneratedValue
	private Long sid;
	/**
	 * 登录ID
	 */
	@Column(unique = true, nullable = false)
	private Long loginId;
	/**
	 * 注册的IP地址
	 */
	private String regIp;
	/***
	 * 注册时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date createDate = new Date();

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getLoginId() {
		return loginId;
	}

	public void setLoginId(Long loginId) {
		this.loginId = loginId;
	}

	public String getRegIp() {
		return regIp;
	}

	public void setRegIp(String regIp) {
		this.regIp = regIp;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
